package main.ui.actions;

import java.awt.Color;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;

import main.ui.dialogs.browsers.ClubBrowser;

public class ClubMouseListener extends MouseAdapter 
{
	@Override
	public void mouseClicked(MouseEvent e) 
	{
		ClubBrowser browser = new ClubBrowser(e.getSource().hashCode());
		browser.setVisible(true);
	}
	
    public void mouseEntered(MouseEvent e)
    {
    	e.getComponent().setBackground(Color.RED);
    }

    public void mouseExited(MouseEvent e)
    {
    	e.getComponent().setBackground(Color.WHITE);
    }
}
